package com.elink.enginerring.video.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.elink.enginerring.video.co.CourseCo;
import com.elink.enginerring.video.entity.Course;

public interface CourseMapper {
    int deleteByPrimaryKey(Integer courseId);

    int insert(Course record);

    int insertSelective(Course record);

    Course selectByPrimaryKey(Integer courseId);

    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKeyWithBLOBs(Course record);

    int updateByPrimaryKey(Course record);
    
	List<Course> selectList(@Param("co")CourseCo co);

	int selectCount(@Param("co")CourseCo co);

	void delCourse(@Param("courseIds")String courseIds);
	
	@Update("update  elink_video.course  set auth_status = #{authStatus} where find_in_set(course_id,#{ids})")
	void addAuth(@Param("ids")String ids,@Param("authStatus")int authStatus);
}